

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit MobileArea</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">返回首页</a></span>
            <span class="menuButton"><g:link class="list" action="list">号码段列表</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">新增一个号码段</g:link></span>
        </div>
        <div class="body">
            <h1>修改号码段</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${mobileAreaInstance}">
            <div class="errors">
                <g:renderErrors bean="${mobileAreaInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <input type="hidden" name="id" value="${mobileAreaInstance?.id}" />
                <div class="dialog">
                    <table>
                        <tbody>
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="num">号码段:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:mobileAreaInstance,field:'num','errors')}">
                                    <input type="text" id="num" name="num" value="${fieldValue(bean:mobileAreaInstance,field:'num')}"/>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="cardtype">号码类别:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:mobileAreaInstance,field:'cardtype','errors')}">
                                    <input type="text" id="cardtype" name="cardtype" value="${fieldValue(bean:mobileAreaInstance,field:'cardtype')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="city">所在城市:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:mobileAreaInstance,field:'city','errors')}">
                                    <input type="text" id="city" name="city" value="${fieldValue(bean:mobileAreaInstance,field:'city')}"/>
                                </td>
                            </tr> 
                        
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input type="submit" name="_action_Update" value="更新" class="save" /><!--g:actionSubmit class="save" value="Update" /--></span>
                    <span class="button"><input type="submit" name="_action_Delete" value="删除" class="delete" onclick="return confirm('确定要删除吗？');" /><!--g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /--></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
